package com.yazi.mxz.server.response.mixin;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yazi.mxz.common.entity.beans.Member;
import com.yazi.mxz.common.entity.beans.ShoppingCart;
import com.yazi.mxz.server.response.view.ShoppingsView;
import com.yazi.mxz.server.response.view.StoreView;

public class ShoppingCartMixIn extends ShoppingCart {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override @JsonIgnore
	public Member getMember() {return null;}
	
	/*
	@Override @JsonIgnore
	public Store getStore() {return null;}
	*/
	@JsonView(StoreView.class)
	@JsonSerialize(as=StoreMixIn.class)
	String store;

	/*
	@Override @JsonIgnore
	public Set<Shopping> getShoppings() {return null;}
	*/
	@JsonView(ShoppingsView.class)
	@JsonSerialize(contentAs=ShoppingMixIn.class)
	String shoppings;
	
}
